package org.xlp.expression;

/**
 * Description: 数学表达式解析接口
 * <br/>date: 2024/11/28 22:27
 *
 * @version 1.0
 * @author: xlp
 */
public interface IExpressionParser {
    final static String PLUS = "+";
    final static String MINUS = "-";
    final static String MULTIPLY = "*";
    final static String DIVISION = "/";
    final static String DOT = ".";
    final static String LEFT_BRACKET = "(";
    final static String RIGHT_BRACKET = ")";

    /**
     * 解析函数
     * @throws ExpressionParseException 假如表达式不合法，则抛出该异常
     * @return 返回表达式结果
     */
    Number parse() throws ExpressionParseException;
}
